﻿using Microsoft.Extensions.DependencyInjection;
using Stee.CAP8.MessageBus.Sagas.Payment.Services;
using System;

namespace Stee.CAP8.MessageBus.Sagas.Payment
{
    class Program
    {
        static void Main(string[] args)
        {
            var services = new ServiceCollection();
            services.AddTransient<PaymentService>();

            var provider = services.BuildServiceProvider();

            var paymentService = provider.GetService<PaymentService>();
            paymentService.Subscirbie();

            Console.Read();
        }
    }
}
